package org.jeecg.modules.hotel.history.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 住宿历史记录
 * @Author: jeecg-boot
 * @Date:   2021-02-24
 * @Version: V1.0
 */
@Data
@TableName("lwgy_hotel_history")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="lwgy_hotel_history对象", description="住宿历史记录")
public class LwgyHotelHistory implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**人员id*/
/*	@Excel(name = "人员id", width = 15)*/
    @Dict(dictTable = "lwgy_base_student",dicText = "student_name",dicCode = "id")
    @ApiModelProperty(value = "人员id")
    private String personId;
	/**姓名*/
    @ApiModelProperty(value = "姓名")
    private String name;
	/**行为(住宿，调宿，退宿)*/
	@Excel(name = "行为", width = 15, dicCode = "hotel_his_behavior")
	@Dict(dicCode = "hotel_his_behavior")
    @ApiModelProperty(value = "行为")
    private String behavior;
	/**顺序*/
/*	@Excel(name = "顺序", width = 15)*/
    @ApiModelProperty(value = "顺序")
    private String sort;
	/**变更之前的床位*/
/*	@Excel(name = "变更之前的床位", width = 15)
    @Dict(dictTable = "lwgy_base_bed",dicText = "name",dicCode = "id")
    @ApiModelProperty(value = "变更之前的床位")*/
    private String beforeBed;
	/**变更之后的床位*/
/*	@Excel(name = "变更之后的床位", width = 15)
    @Dict(dictTable = "lwgy_base_bed",dicText = "name",dicCode = "id")
    @ApiModelProperty(value = "变更之后的床位")*/
    private String afterBed;


    @Excel(name = "变更之前的床位", width = 15)
    @ApiModelProperty(value = "变更之前的床位")
    @TableField(exist = false)
    private String beforeInfo;
    @Excel(name = "变更之后的床位", width = 15)
    @ApiModelProperty(value = "变更之后的床位")
    @TableField(exist = false)
    private String afterInfo;
    /**姓名*/
    @Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    @TableField(exist = false)
    private String stuName;


	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
    @Excel(name = "创建日期", width = 15,format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;


}
